from argparse import Namespace

if __name__ == '__main__':
    ns = Namespace(**{'version': 1.0})
    print(vars(ns))